import Home from '../pages/Home'
import View from '../pages/View'
import App from '../App'
import { BrowserRouter, Route, Routes, Navigate } from 'react-router-dom'

const NewRoute = () =>
(
    <BrowserRouter>
        <Routes>
            <Route path='/' element={<App />}>
                <Route path='/' element={<Navigate to='/home' />}></Route>
                <Route path='/home' element={<Home />}></Route>
                <Route path='/view' element={<View />}></Route>
            </Route>
        </Routes>
    </BrowserRouter>
)


export default NewRoute